import org.restlet.Server;
import org.restlet.data.Protocol;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;

public class RESTServer extends ServerResource {

	@SuppressWarnings("unused")
	private ProjectContainer pc = ProjectContainer.getInstance();

	public RESTServer() throws Exception {
		// Create the HTTP server and listen on port 63081
		new Server(Protocol.HTTP, 63081, RESTServer.class).start();
	}

	@Get(value="http://localhost:63081/createProject")
	public String createProject() {
		return "Project successfully created";
	}

}
